package com.kedacom.config.configuration;

import com.kedacom.config.AbstractConfiguration;
import com.kedacom.config.annotation.ConfigProperty;

public class MemcachedConfiguration extends AbstractConfiguration {

	@ConfigProperty("memcached.host")
	private String memcachedHost; // host
	@ConfigProperty("memcached.port")
	private String memcachedPort; // 端口
	@ConfigProperty("memcached.username")
	private String memcachedUsername; // 用户名
	@ConfigProperty("memcached.password")
	private String memcachedPassword; // 密码

	public String getMemcachedHost() {
		return memcachedHost;
	}

	public void setMemcachedHost(String memcachedHost) {
		this.memcachedHost = memcachedHost;
	}

	public String getMemcachedPort() {
		return memcachedPort;
	}

	public void setMemcachedPort(String memcachedPort) {
		this.memcachedPort = memcachedPort;
	}

	public String getMemcachedUsername() {
		return memcachedUsername;
	}

	public void setMemcachedUsername(String memcachedUsername) {
		this.memcachedUsername = memcachedUsername;
	}

	public String getMemcachedPassword() {
		return memcachedPassword;
	}

	public void setMemcachedPassword(String memcachedPassword) {
		this.memcachedPassword = memcachedPassword;
	}

	public String toString() {
		StringBuffer sb = new StringBuffer("MemcachedConfiguration[");
		sb.append("memcachedHost=" + getMemcachedHost() + ",");
		sb.append("memcachedPort=" + getMemcachedPort() + ",");
		sb.append("memcachedUsername=" + getMemcachedUsername() + ",");
		sb.append("memcachedPassword=" + getMemcachedPassword() + "]");
		return sb.toString();
	}

}
